/*
 * 文件名：SysMenu.java
 * 版权：Copyright by will_awoke
 * 描述：
 * 修改人：will_awoke
 * 修改时间：2014-5-30
 * 跟踪单号：
 * 修改单号：
 * 修改内容：
 */

package com.qbgs.rbac.bean;


import java.util.List;
import java.util.Map;

import com.alibaba.fastjson.JSON;
import com.qbgs.util.Column;


/**
 * easyUI Tree实体，属性命名需严格和目标要求一致
 * @author will_awoke
 * @version 2014-5-30
 * @see SysMenu
 * @since
 */
public class SysMenu
{

    @Column(name = "MENU_ID")
    private String id;

    @Column(name = "PARENT_ID")
    private String parentId;

    @Column(name = "MENU_CODE")
    private String menuCode;

    @Column(name = "MENU_BAR")
    private String text;

    @Column(name = "MENU_URL")
    private String menuUrl;

    @Column(name = "IS_BUTTON")
    private String isButton;

    @Column(name = "MENU_ICON")
    private String iconCls;

    private boolean checked = false;

    private String state = "open";

    private Map<String, String> attributes;

    private List<SysMenu> children;

    /**
     * 构造器
     */
    public SysMenu()
    {

    }

    @Override
    public String toString()
    {
        return JSON.toJSONString(this);
    }

    //setter getter
    public String getParentId()
    {
        return parentId;
    }

    public String getId()
    {
        return id;
    }

    public void setId(String id)
    {
        this.id = id;
    }

    public String getText()
    {
        return text;
    }

    public void setText(String text)
    {
        this.text = text;
    }

    public String getIconCls()
    {
        return iconCls;
    }

    public void setIconCls(String iconCls)
    {
        this.iconCls = iconCls;
    }

    public void setParentId(String parentId)
    {
        this.parentId = parentId;
    }

    public String getMenuCode()
    {
        return menuCode;
    }

    public void setMenuCode(String menuCode)
    {
        this.menuCode = menuCode;
    }

    public String getMenuUrl()
    {
        return menuUrl;
    }

    public void setMenuUrl(String menuUrl)
    {
        this.menuUrl = menuUrl;
    }

    public String getIsButton()
    {
        return isButton;
    }

    public void setIsButton(String isButton)
    {
        this.isButton = isButton;
    }

    public boolean isChecked()
    {
        return checked;
    }

    public void setChecked(boolean checked)
    {
        this.checked = checked;
    }

    public String getState()
    {
        return state;
    }

    public void setState(String state)
    {
        this.state = state;
    }

    public Map<String, String> getAttributes()
    {
        return attributes;
    }

    public void setAttributes(Map<String, String> attributes)
    {
        this.attributes = attributes;
    }

    public List<SysMenu> getChildren()
    {
        return children;
    }

    public void setChildren(List<SysMenu> children)
    {
        this.children = children;
    }

}
